import {
  createApp
} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import element from 'element-plus'
import 'element-plus/theme-chalk/index.css'

//统一导入icon的图标
import * as Icons from "@element-plus/icons-vue"

const app = createApp(App)

//统一给icon注册组件
Object.keys(Icons).forEach(key => {
  app.component(key, Icons[key as keyof typeof Icons])
})

app.use(element)

app.use(store).use(router).mount('#app')